<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>打印订单审核表 -- VOSUN外贸管理系统</title>
<load href='__PUBLIC__/bootstrap/css/bootstrap.min.css' />
<load href='__PUBLIC__/Css/style.css' />
<style type="text/css">
.table-bordered {
      border: 1px solid black;
}

.table-bordered th,
.table-bordered td {
      border-left: 1px solid black;
}
.table th, .table td {
    border-top: 1px solid black;
}
</style>
<style media="print" type="text/css"> 
.Noprint{display:none;} 
.PageNext{page-break-after: always;} 
</style> 
</head>
<body>
<div class="heading Noprint">
 <span class="offset1">VOSUN订单审核表</span> <span class="offset3"><button onClick="window.print()" class="btn btn-primary offset1"><i class="icon-print  icon-white"></i>打印</button></span>
</div>
<h1 style="text-align:center">订单审核表</h1>
<table class="table table-bordered">
   <tr>  <td colspan="2">销售订单号</td><td colspan="2">{$vo.mano} </td>  <td colspan="2">PO号</td>
         <td colspan="2">{$vo.po}</td><td colspan="2">总金额</td><td colspan="2">{$vo.total}{$vo.currency|getConfigVal='currency'}</td>
   </tr>
<php>$customer_id = getModelName($vo['id'],'Order','customer_id');
     $customer = M('Customer')->getById($customer_id);
</php>
   <tr>
       <td colspan="4" rowspan="2">客户（公司及联系人）</td>
       <td colspan="2">公司</td><td colspan="6">{$customer.company}</td>
   </tr>
   <tr>
       <td colspan="2">联系人</td>
       <td colspan="2">{$customer.name}</td>
       <td colspan="2">联系人电话</td>
       <td colspan="2">{$customer.phone}</td>
   </tr>

   <tr>
       <th>销售分单号</th>
       <th colspan="3">中文名；英文名</th>
       <th>CAS号</th>
       <th>数量(KG)</th>
       <th>单价</th>
       <th>小计</th>
       <th>运费</th>
       <th>总计</th>
       <th>预收款</th>
       <th>余款</th>
   </tr>
<?php 
    $map = 'order_id = '.$vo['id'] ;
    $products = M('Order_detail')->where($map)->order('id desc')->findAll(); 
 ?>
   <volist name="products" id="ca">
   <tr>
                <td>{$ca.mano}</td>
                <php>
                    $product = M('Product');
                    $product->getById($ca['product_id']);
                </php>
                <td colspan="3">{:$product->name}
                ;{:$product->ename}
               <td> {:$product->cas}</td>
                <td>{$ca.number}</td>
                <td>{$ca.price}</td>
                <td>{$ca.total}</td>
                <td>{$ca.logifee}</td>
                <td>{:$ca['total']+$ca['logifee']}</td>
                <td>{$ca.to_first_pay}</td>
                <td>{$ca.to_remain_pay}</td>
            </tr>
            
    </volist>
<!--财务空表格-->
    <tr><th>收款/退款</th><th colspan="2">时间</th> <th colspan="2">收款金额</th><th colspan="2">收款人</th><th colspan="2">复核</th><th colspan="3">备注</th></tr>
        <tr>
        <tr>
           <td>&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="3">&nbsp;</td>
        </tr>
        <tr>
           <td>&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="3">&nbsp;</td>
        </tr>
        <tr>
           <td>&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="3">&nbsp;</td>
        </tr>
        <tr>
           <td>&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="2">&nbsp;</td>
           <td colspan="3">&nbsp;</td>
        </tr>
    <tr> <th colspan="5">业务员:</th><th colspan="7">审核人：</th> </tr>
</table>
